﻿{extend name="public:base" /}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <select class="form-control" name="payed_status">
                                <option value="0">请选择状态</option>
                                <option value="1" {:input('payed_status') == 1 ? 'selected' : ''}>待审核</option>
                                <option value="2" {:input('payed_status') == 2 ? 'selected' : ''}>审核成功</option>
                                <option value="-1" {:input('payed_status') == -1 ? 'selected' : ''}>审核失败</option>
                            </select>
                        </div>

                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group" style="width: 100%; display: flex; justify-content: space-between">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>

                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>昵称</th>
                                <th>手机号</th>
                                <th>金额</th>
                                <th>付款凭证</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.price}</td>
                                <td>
                                    {if $vo.payed_img}
                                    <div class="form-uploaded-img-box">
                                        <img class="form-uploaded-box-img" src="{$vo.payed_img}">
                                        <i class="form-uploaded-img-preview iconfont icon-yulan" onclick="previewImg(this, 'form-uploaded-img-preview')"></i>
                                    </div>
                                    {/if}
                                </td>
                                <td>{$vo.payed_status|doPayedStatus}</td>
                                <td>
                                    {if $vo.payed_status == 1 && $vo.payed_img}
                                    <a href="{:url(vipConfirmSuccess, ['id' => $vo.id])}" class="btn btn-white btn-sm ajax-operate"><i class="iconfont icon-success"></i> 通过 </a>
                                    <a href="{:url(vipConfirmFail, ['id' => $vo.id])}" class="btn btn-white btn-sm ajax-operate"><i class="iconfont icon-refuse"></i> 失败 </a>
                                    {/if}
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>{include file="public/preview-img-mask" swiper-id="cropper-preview" /}{/block}

